export default {
  inventoryPage(data) {
    return {
      name: '商品中心列表',
      url: '/mall/inventory/page',
      method: 'post',
      data,
    }
  },
  getViewOutHistory(id) {
    return {
      name: '出库历史',
      url: `/mall/inventory/viewOutHistory/${id}`,
      method: 'get',
    }
  },
  getMaterialInventoryStatistical(tenantId) {
    return {
      name: '列表个数',
      url: `/mall/inventory/getMaterialInventoryStatistical/${tenantId}`,
      method: 'get',
    }
  },
  getViewPriceHistory(id) {
    return {
      name: '价格历史',
      url: `/mall/inventory/viewPriceHistory/${id}`,
      method: 'get',
    }
  },
  outHistoryPage(data) {
    return {
      name: '出库历史分页',
      url: `/mall/inventory/outHistoryPage`,
      method: 'post',
      data
    }
  },
  priceAdjustmentPage(data) {
    return {
      name: '价格历史分页',
      url: `/mall/inventory/priceAdjustmentPage`,
      method: 'post',
      data
    }
  },
  toSelling(data) {
    return {
      name: '上架',
      url: `/mall/inventory/toSelling`,
      method: 'post',
      data,
    }
  },
  toTrash(data) {
    return {
      name: '移到回收站',
      url: `/mall/inventory/toTrash`,
      method: 'post',
      data,
    }
  },
  getAfterSaleDetailId(id) {
    return {
      name: '售后列表详情',
      url: `/mall/afterSale/getAfterSaleDetail/${id}`,
      method: 'post',
    }
  },
  getAfterSaleList(data) {
    return {
      name: '售后列表',
      url: `/mall/afterSale/getAfterSaleList`,
      method: 'post',
      data,
    }
  },
  getAfterSaleLogAfterSakeId(afterSaleId) {
    return {
      name: '流转记录，和协商历史',
      url: `/mall/afterSale/getAfterSaleLog/${afterSaleId}`,
      method: 'put',
    }
  },
  getAfterSaleCount() {
    return {
      name: '售后列表数量统计--4s',
      url: `/mall/afterSale/getAfterSaleCount`,
      method: 'post',
    }
  },
  getProceedsStatistical(data) {
    return {
      name: '统计付款信息',
      url: `/mall/cashierDesk/getProceedsStatistical`,
      method: 'post',
      data,
    }
  },
  getRefundStatistical(data) {
    return {
      name: '统计退款信息',
      url: `/mall/cashierDesk/getRefundStatistical`,
      method: 'post',
      data,
    }
  },
  getSubAccountingStatistical(data) {
    return {
      name: '统计分账信息',
      url: `/mall/cashierDesk/getSubAccountingStatistical`,
      method: 'post',
      data,
    }
  },

  getProceedsPage(data) {
    return {
      name: '收款列表',
      url: `/mall/cashierDesk/proceedsPage`,
      method: 'post',
      data,
    }
  },
  getRefundPage(data) {
    return {
      name: '退款列表',
      url: `/mall/cashierDesk/refundPage`,
      method: 'post',
      data,
    }
  },
  getSubAccountingPage(data) {
    return {
      name: '分账列表',
      url: `/mall/cashierDesk/subAccountingPage`,
      method: 'post',
      data,
    }
  },
  proceedsExportData(data) {
    return {
      name: '收款导出',
      url: `/mall/cashierDesk/proceedsExportData`,
      method: 'post',
      data,
    }
  },
  refundExportData(data) {
    return {
      name: '退款导出',
      url: `/mall/cashierDesk/refundExportData`,
      method: 'post',
      data,
    }
  },
  subAccountingExportData(data) {
    return {
      name: '分账导出',
      url: `/mall/cashierDesk/subAccountingExportData`,
      method: 'post',
      data,
    }
  },
}